﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WeChat.AspNet.Events
{
    public class VoiceReceivedEventArgs : MessageEventArgs
    {
        public VoiceReceivedEventArgs(Hashtable values) : base(values)
        {
            MediaId = (string)values["MediaId"];

            Format = (string)values["Format"];

            Recognition = (string)values["Recognition"];
        }
        /// <summary>
        /// 语音消息媒体id，可以调用多媒体文件下载接口拉取数据。
        /// </summary>
        public string MediaId { get; set; }
        /// <summary>
        /// 语音格式，如amr，speex等。
        /// </summary>
        public string Format { get; set; }
        /// <summary>
        /// 语音识别结果，UTF8编码
        /// </summary>
        public string Recognition { get; set; }
    }
}
